#!/bin/bash

cd ~/Desktop/gtk3-win32;
find -name '*.pc' | while read pc; do sed -e "s@^prefix=.*@prefix=$PWD@" -i "$pc"; done;

export PKG_CONFIG_PATH=/home/da/Desktop/gtk3-win32/lib/pkgconfig;

cd ~/Stage1A/Programmeur/interface/callback;

i586-mingw32msvc-gcc -std=c99 callback.c -o executable.exe `pkg-config --cflags --libs gtk+-3.0`;

#mkdir ~/distri;
cp executable.exe ~/distri;
cp ~/Desktop/gtk3-win32/bin/*.dll ~/distri;
